-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add progress indicator of cellpose segmentation #8
Feature: add progress indicator of cellpose segmentation #8
Conversation
Sorry about the tests, I sort of forgot and then was distracted. |
Hi @psobolewskiPhD, I just went ahead with fixes (because I had made recent changes) and didn't even say thanks for your contribution! I hadn't used threading in napari previously so it's also a great way for me to learn. Also using these temporary folders is probably cleaner than what I had. I just have one point that worries be a bit. Thanks to threading the UI remains interactive. This means that while e.g. one image gets analyzed, one can switch to another image or even another dataset. Once the computation is done, then the segmentation can appear on a totally different dataset. Not sure how to handle that. Re-load the corresponding dataset once computation is done? Not displaying the result if the image/dataset has changed? What I could imagine is for example use threading only for the batch case where we can skip entirely the display of the result, but keep the "blocking" case for the single image analysis. Any thoughts ? |
This is a really good point. BTW not sure what's going on with the macOS tests. I thought I had resolved the stalling locally by changing the file IO. But maybe I missed something. |
So the stalled macOS tests might have something to do with |
This is pretty old and I'm not sure the threading approach is the way to go. I will try something else hopefully. |
I was recently looking into this in the original cellpose-napari plugin
MouseLand/cellpose-napari#33
so I thought I'd see about implementing something similar here.
I'm not sure it's the cleanest approach? But it does work for me locally.